<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/',"IndexController@index");

Route::get('/auth/register','Auth\AuthController@getRegister');

Route::post('/auth/register','Auth\AuthController@postRegister');
#POST过来数据存入数据库提交注册
/**
 * 登陆
 */
Route::get('/home',function (){
	
	return 'welcom';
});
Route::get('/auth/logout','Auth\AuthController@getLogout');

Route::get('/auth/login','Auth\AuthController@getLogin');
Route::post('/auth/login','Auth\AuthController@postLogin');

/**
 * 借款
 */
Route::get('/jie','ProController@jie');
Route::post('/jie','ProController@jiePost');

Route::get('/pro/{pid}','ProController@pro');
Route::post('/touzi/{pid}','ProController@touzi');
/**
 * 项目审核
 */
Route::get('/prolist','CheckController@prolist');
Route::get('/check/{pid}','CheckController@check');
Route::post('/check/{pid}','CheckController@checkpost');